import { Switch } from 'react-router-dom'
// 路由规则
import { routerConfig } from './router/Routerconfig'
// 高阶组件 路由守卫
import { FrontendAuth } from './router/FrontendAuth '
function App() {
  return (
    <div className="App">
      {
        <Switch>
          {/* 将路由规则传给高阶组件 */}
          <FrontendAuth config={routerConfig} />
        </Switch>
      }
    </div>
  )
}

export default App
